package com.focus.pay.ali.model.refund;

import com.alipay.api.domain.OpenApiRoyaltyDetailInfoPojo;
import com.focus.pay.core.domain.PayModelDomain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
* @Author: 赵参谋
* @Date: 2021/9/29 10:07
* @Description: 支付宝交易退款
 * <link>https://opendocs.alipay.com/open/02ekfk</link>
*/
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class AliPayModelRefund extends PayModelDomain {
    /**
     * 商户订单号
     */
    private String out_trade_no;
    /**
     * 支付宝交易号
     */
    private String trade_no;

    /**
     * 	退款金额
     */
    private BigDecimal refund_amount;

    /**
     * 退款原因说明
     */
    private String refund_reason;

    /**
     * 退款请求号
     */
    private String out_request_no;

    /**
     * 退分账明细信息
     */
    private List<OpenApiRoyaltyDetailInfoPojo> refund_royalty_parameters;

    /**
     * 查询选项
     */
    private List<String> query_options;

}
